package com.xuecheng.learning.service;

import com.xuecheng.content.model.po.PageResult;
import com.xuecheng.learning.model.dto.MyCourseTableParams;
import com.xuecheng.learning.model.dto.XcChooseCourseDto;
import com.xuecheng.learning.model.dto.XcCourseTablesDto;
import com.xuecheng.learning.model.po.XcCourseTables;
import org.springframework.stereotype.Service;

/**
 * 我的课程service接口
 * @author 冯佳鑫 又菜又爱学
 * @version 1.0
 * @DATE now()
 */
@Service
public interface MyCourseTablesService {
    /**
     * @description 添加选课（包括选课表和我的课程表）
     * @param userId 用户id
     * @param courseId 课程id
     * @return com.xuecheng.learning.model.dto.XcChooseCourseDto
     * @author Mr.M
     * @date 2022/10/24 17:33
     */
    public XcChooseCourseDto addChooseCourse(String userId, Long courseId);

    /**
     * 获取学习资格状态
     * @param userId
     * @param courseId
     * @return
     */
    public XcCourseTablesDto getLearningStatus(String userId, Long courseId);

    /**
     * 查询课程
     * @param params
     * @return
     */
    public PageResult<XcCourseTables> mycoursetable(MyCourseTableParams params);
}
